import {BrowserLogPlugin, getLoggerFactory} from "logger-extra";

/**
 * @description logger 相关的类
 * @author lihh
 */
const LoggerFactory = getLoggerFactory({
  appName: "serviceWork",
  // BrowserLogPlugin Browser print log plugin
  plugins: [
    BrowserLogPlugin({
      persist: false,
      isPrintLog: () => true,
    }),
  ],
});
export const Logger = LoggerFactory.getLogger("sw.js");
